//
//  RetryAPI.h
//  Hq100yyApp
//
//  Created by ouyongyong on 2016/11/10.
//  Copyright © 2016年 edu24ol. All rights reserved.
//

#import "YTKRequest.h"

typedef void(^B2cFailureBlock)(__kindof NSError *error);

@interface RetryAPI : YTKRequest

@property (nonatomic, copy) YTKRequestCompletionBlock succBlock;
@property (nonatomic, copy) YTKRequestCompletionBlock failBlock;
@property (nonatomic, assign) int retryTime;
@property (nonatomic, copy)     NSString* originHost;
@property (nonatomic, copy, readonly)     NSString* tryIp;

- (instancetype)initWithRequest:(YTKRequest*)request;

- (void)startReqWithIp:(NSString*)newIp;
- (BOOL)isRetryedForIp:(NSString *)ip;
@end

